package com.example.administrator.swredeem.adapter;

import com.example.administrator.swredeem.R;
import com.example.administrator.swredeem.beanClass.UserListBean;
import com.example.administrator.swredeem.view.recyclerview.BaseQuickAdapter;
import com.example.administrator.swredeem.view.recyclerview.BaseViewHolder;

import java.util.List;

public class AdapterUser extends BaseQuickAdapter<UserListBean.InfoBean> {

    public AdapterUser(int layoutResId, List<UserListBean.InfoBean> data) {
        super(R.layout.item_user_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserListBean.InfoBean item) {
        helper.setText(R.id.tv_huhao, item.getUserid());//户号
        helper.setText(R.id.tv_name, item.getUsername());//姓名
        helper.setText(R.id.tv_addr, item.getAddr());//地址
        helper.setText(R.id.tv_bjtype, item.getRestype());//表具类型
        helper.setText(R.id.tv_idCard, item.getCertnum());//身份证号

    }
}
